import axios from '@/libs/api.request'

export const getList = info => {
  return axios.request({
    url: 'coach/getOrganList',
    data: info,
    method: 'post'
  })
}

export const add = info => {
  return axios.request({
    url: 'coach/addOrgan',
    data: info,
    method: 'post'
  })
}

export const put = info => {
  return axios.request({
    url: 'coach/editOrgan',
    data: info,
    method: 'post'
  })
}

export const del = info => {
  return axios.request({
    url: 'coach/delOrgan',
    data: info,
    method: 'post'
  })
}

export const getUser = info => {
  return axios.request({
    url: 'coach/getUser',
    data: info,
    method: 'post'
  })
}
export const getLogList = info => {
  return axios.request({
    url: 'coach/getLogList',
    data: info,
    method: 'post'
  })
}

export const getCoachList = info => {
  return axios.request({
    url: 'coach/getCoachList',
    data: info,
    method: 'post'
  })
}

export const addCoach = info => {
  return axios.request({
    url: 'coach/addCoach',
    data: info,
    method: 'post'
  })
}

export const putCoach = info => {
  return axios.request({
    url: 'coach/editCoach',
    data: info,
    method: 'post'
  })
}

export const delCoach = info => {
  return axios.request({
    url: 'coach/delCoach',
    data: info,
    method: 'post'
  })
}
